<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>佛经管理后台</title>

    <!-- Bootstrap -->
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- Datatables -->
    <link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet">
    <link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../build/css/custom.min.css" rel="stylesheet">
    <link href="/static/css/main.css" rel="stylesheet">

  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
            <div class="profile clearfix text-center">
              <div class="profile_info">
                <div class="welcome">Welcome</div>
              </div>

            </div>
            <!-- /menu profile quick info -->

            <br />

            <!-- sidebar menu -->
            <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            </div>
            <div class="sidebar-footer hidden-small">
              <a data-toggle="tooltip" data-placement="top" title="Settings">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Lock">
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
              </a>
              <a data-toggle="tooltip" data-placement="top" title="Logout" href="login.html">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
              </a>
            </div>
            <!-- /menu footer buttons -->
          </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
          <div class="nav_menu">
            <nav>
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>

              <ul class="nav navbar-nav navbar-right">
                <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <li><a href="login.html">Log Out</a></li>
                  </a>
                </li>
              </ul>
            </nav>
          </div>
        </div>
        

        <div class="right_col" role="main">


          <div id='sutras_category_demo'>
              <div class="mycol-sm-6">
                <div class="mycol-sm-3">
                  <i class="search-normal">经书类别&nbsp&nbsp</i>
                </div>
                <div class="mycol-sm-3">
                  <select id="sutras_category" class="form-control input-sm">
                  </select>
                </div>
              </div>

              <div class="mycol-sm-6">
                <div class="mycol-sm-3">
                  <i class="search-normal">&nbsp&nbsp经书名称&nbsp&nbsp</i>
                </div>
                <div class="mycol-sm-3">
                  <select id="sutras_edition" class="form-control input-sm">
                  </select>
                </div>
              </div>

              <ul class="nav navbar-right panel_toolbox">
                <li><a href="page_create.html?operation=create" class="close-link" target="_blank">
                  导入页</i></a></li>
              </ul>

          </div>
          <div class="clearfix"></div>
          <br>

          <div id="main">
            <div class="row" id="main_row">
            </div>

            <div id="pagenumsdemo" class="dataTables_paginate paging_simple_numbers" style="display: none;">
              <ul class="pagination" id="pagenums">
                
              </ul>
            </div>

          </div>
        </div>
        <footer>
          <div class="pull-right">
            by py69
          </div>
          <div class="clearfix"></div>
        </footer>
      </div>
    </div>
    <script id="dotlist" type="text/template">
      {{ for (var i = 0, l = it.data.length; i < l; i++) { }}
       <div class="col-md-3 col-sm-6 col-xs-12">
          <div class="x_panel fixed_height_320">
            <div class="x_title">
            <h4 class="col-md-6">第{{=it.data[i].page_num}}页</h4>
            <ul class="nav navbar-right panel_toolbox">
              
              <li>
                <a title="定位" href="page_locate.html?operation=locate&page_id={{=it.data[i].id}}&edition_id={{=it.data[i].edition_id}}" target="_blank"><i class="fa fa-crosshairs" style="cursor:pointer;">
                </i></a>
              </li>

              <!-- <li>
                <a href="page_recog.html?operation=recog&page_id={{=it.data[i].id}}" target="_blank" title="识别"><i class="fa fa-eye" style="cursor:pointer;">
                </i></a>
              </li> -->
              {{ if(it.data[i].status == 0){ }}
                <li>
                  <a href="page_update.html?operation=update&page_id={{=it.data[i].id}}" target="_blank"  title="修改"><i class="fa fa-pencil" style="cursor:pointer;" onclick="pageUpdate({{=it.data[i].id}}")>
                  </i></a>
                </li>
                <li>
                  <a title="删除"><i class="fa fa-trash-o" style="cursor:pointer;" onclick="pageDelete({{=it.data[i].id}})">
                  </i></a>
                </li>
              {{ } }}

            </ul>
            <div class="clearfix"></div></div>
            <div class="x_content x-content-center imgdev">
            <img src="{{=it.data[i].original_cimg_url}}" class="editionimg">
            </div>
            </div>
          </div>
      {{ } }}
    </script>

    <script id="pagenumslist" type="text/template">
      <li class="paginate_button previous" id="a-"  style="cursor:pointer;">
        <a aria-controls="datatable" tabindex="-" onclick="pageChoice({{=it.data['editionId']}}, '-', {{=it.data['n']}})">Previous</a>
      </li>

      {{ for (var i = 1, l = it.data["n"]; i <= l; i++) { }}
        {{ if(i==1){ }}
          <li class="paginate_button active" id="a{{=i}}" tabindex="{{=i}}" style="cursor:pointer;">
        {{ }else{ }}
          <li class="paginate_button" id="a{{=i}}" tabindex="{{=i}}" style="cursor:pointer;">
        {{ } }}
          <a aria-controls="datatable" onclick="pageChoice({{=it.data['editionId']}}, {{=i}}, {{=l}})">
            {{=i}}</a>
        </li>
      {{ } }}
      <li class="paginate_button next" id="a+" style="cursor:pointer;">
        <a aria-controls="a+" tabindex="+" onclick="pageChoice({{=it.data['editionId']}}, '+', {{=it.data['n']}})">Next</a>
      </li>
    </script>


    <script id="sclist" type="text/template">
      <option value="-1">无</option>
      {{ for (var i = 0, l = it.data.length; i < l; i++) { }}
        <option id= "sc_{{=it.data[i].id}}" value="{{=it.data[i].id}}">{{=it.data[i].name}}</option>
      {{ } }}
    </script>
    <!-- jQuery -->
    <script src="/static/js/element.js"></script>
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    <script src="/static/js/dot.min.js"></script>
    <script src="/static/js/common.js"></script>
    <script src="/static/js/page.js"></script>
    <!-- Bootstrap -->
    <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="../vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="../vendors/nprogress/nprogress.js"></script>
    <!-- iCheck -->
    <script src="../vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script id='hahah' src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="../vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="../vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="../vendors/jszip/dist/jszip.min.js"></script>
    <script src="../vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="../vendors/pdfmake/build/vfs_fonts.js"></script>

    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>

    <script>
      $("#sidebar-menu").load("sidebar.html", null, init_sidebar);
    </script>
  </body>
</html>